package jzqb.service;

import haha.life.common.CutPageBean;
import jzqb.bo.DynamicNewsBo;
import jzqb.po.DynamicNewsPo;
import jzqb.vo.DynamicNewsVo;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * Description:
 *
 * @author BaiGe
 * @date: 2021/4/7 14:24
 * @Version 1.0
 */
public interface IDynamicNewsService {

    /**
     * 查询动态新闻
     * @param dynamicNewsBo
     * @return
     */
    CutPageBean<DynamicNewsVo> queryDynamicNews(DynamicNewsBo dynamicNewsBo);

    /**
     * 添加动态新闻
     * @param dynamicNewsPo
     * @return
     */
    Boolean addDynamicNews(DynamicNewsPo dynamicNewsPo) throws UnsupportedEncodingException;

    /**
     * 更改动态新闻
     * @param dynamicNewsPo
     * @return
     */
    Boolean updateDynamicNews(DynamicNewsPo dynamicNewsPo) throws UnsupportedEncodingException;

    /**
     * 删除动态新闻
     * @param id
     * @return
     */
    Boolean delDynamicNews(Integer id);

    /*----------------------前台----------------------------*/

    /**
     * 首页展示五条科技动态
     * @return
     */
    List<DynamicNewsVo> showDynamicNewsLimitFive();

    /**
     * 查询动态新闻-前台
     * @param dynamicNewsBo
     * @return
     */
    CutPageBean<DynamicNewsVo> queryDynamicNewsOfFront(DynamicNewsBo dynamicNewsBo);

    /**
     * 根据动态新闻id  查询动态新闻
     * @param dynamicNewsId
     * @return
     */
    DynamicNewsVo  getDynamicNewsById(Integer dynamicNewsId);
}
